package com.zui.entity.setup;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zui.entity.BaseAutoIdEntity;

@Entity
@Table(name="uom_conversion_dated")
public class UomConversionDated extends BaseAutoIdEntity {
	private static final long serialVersionUID = 1L;

	private Uom uom;
	private Uom uomTo;
	private Date fromDate;
	private Date thruDate;
	private Double conversionFactor;
	private String customMethodId;
	private Double decimalScale;
	private String roundingMode;
	
	@ManyToOne() @JoinColumn(name="uomId")
	public Uom getUom() {	return uom;	}
	@ManyToOne() @JoinColumn(name="uomToId")
	public Uom getUomTo() {	return uomTo;	}
	
	@Column(length=20)
	public String getCustomMethodId() {	return customMethodId;	}
	@Column(length=20)
	public String getRoundingMode() {	return roundingMode;	}
	
	public Date getFromDate() {
		return fromDate;
	}
	public Date getThruDate() {
		return thruDate;
	}
	public Double getConversionFactor() {
		return conversionFactor;
	}

	public Double getDecimalScale() {
		return decimalScale;
	}

	
	
	
	
	
	public void setUom(Uom uom) {
		this.uom = uom;
	}
	public void setUomTo(Uom uomTo) {
		this.uomTo = uomTo;
	}
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public void setThruDate(Date thruDate) {
		this.thruDate = thruDate;
	}
	public void setConversionFactor(Double conversionFactor) {
		this.conversionFactor = conversionFactor;
	}
	public void setCustomMethodId(String customMethodId) {
		this.customMethodId = customMethodId;
	}
	public void setDecimalScale(Double decimalScale) {
		this.decimalScale = decimalScale;
	}
	public void setRoundingMode(String roundingMode) {
		this.roundingMode = roundingMode;
	}

	
	
	
}
